const express = require('express')

const routers = express.Router()


routers.get('/home', (req, res) => {
    //req.query拿get参数
    res.send(`home》〉》〉》query/${req.query.name}`)
})

routers.post('/home', (req, res) => {
    res.send(`home》〉》〉》body/${req.body.name}`)
})

routers.get('/detail', (_, res) => {
    res.send('detail')
})

module.exports= {
    routers
}
